package com.mf.service.basic;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mf.entity.dto.basic.DtoRole;
    
import com.mf.entity.req.basic.search.SearchReqRole;
import com.mf.service.BaseService;

import java.util.List;


/**
 * 角色表
 *
 *
 */
public interface ServiceRole extends BaseService<DtoRole,SearchReqRole> {
    /**
     * 删除
     */
    void deleteById(Integer id);

    /**
     * 分页列表查询树结构
     */
    Page<DtoRole> findPageTreeByParams(SearchReqRole searchReqRole);

    List<Integer> listByUserId(Integer userId);

    /**
     * 根据pid查询子数量
     */
    long countByPid(Integer id);
}

